.class Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;
.super Ljava/lang/Object;
.source "MediaPreviewActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->B()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->c(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Landroid/widget/TextView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/TextView;->isSelected()Z

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_0

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    const/4 v2, -0x1

    invoke-static {v1, v0, v2}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->a(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;ZI)V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->g(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/4 v2, 0x1

    add-int/2addr v1, v2

    .line 4
    iget-object v3, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {v3}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->h(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)I

    move-result v3

    if-le v1, v3, :cond_1

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    sget v1, Les/z4;->__picker_over_max_count_tips:I

    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->h(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    aput-object v3, v2, v0

    invoke-virtual {p1, v1, v2}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Les/ec;->a(Ljava/lang/String;)V

    return-void

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->g(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {v0, v2, v1}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->a(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;ZI)V

    :goto_0
    if-eqz p1, :cond_2

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->g(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Ljava/util/ArrayList;

    move-result-object p1

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->i(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    goto :goto_1

    .line 8
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->g(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Ljava/util/ArrayList;

    move-result-object p1

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity$i;->a:Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->i(Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_1
    return-void
.end method
